<?php

namespace App;

use DB;
use Illuminate\Database\Eloquent\Model;
use Storage;


/**
 * Class SignConfig
 * @package App
 */
class SignConfig extends Model
{
    public $timestamps = false;
    protected $table = 'kl_sign_config';


    static function ConfigModify($peizhi, $request)
    {
        $peizhi->gold_1 = $request->gold_1;
		$peizhi->gold_2 = $request->gold_2;
		$peizhi->gold_3 = $request->gold_3;
		$peizhi->gold_4 = $request->gold_4;
        $peizhi->gold_5 = $request->gold_5;
		$peizhi->gold_6 = $request->gold_6;
		$peizhi->gold_min = $request->gold_min;
		$peizhi->gold_max = $request->gold_max;		
        
        if (!$peizhi->save()) {
            return ['status' => 2, 'message' => '失败'];
        }
        return ['status' => 1, 'message' => '成功'];

    }
}
